package com.be.beadmin.product.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Description:
 * @author: Jiaming Zheng
 * @Date: Create in 21:14 2023/11/22
 * @Modified By:
 **/
@Table(name="T_OM_UserWorkHourInfo")
@Getter
@Setter
@Entity
public class UserWorkHourInfo extends BaseEntity {

    @Column(name = "UserId",columnDefinition = "VARCHAR(50) not null COMMENT '用户Id' ")
    private String userId;

    @Column(name = "UserName",columnDefinition = "VARCHAR(50) not null COMMENT '用户名称' ")
    private String userName;
    /**
     * 0待执行
     * 1执行中
     * 2暂停
     * 3完成
     */
    @Column(
            name = "ProcessStatus",
            nullable = false,
            columnDefinition = "decimal(1) default 0 COMMENT '当前工序执行状态' "
    )
    protected Integer processStatus = 0;


    @Column(name = "ProcessId",columnDefinition = "VARCHAR(50) COMMENT '工序ID'")
    private String processId;


    @Column(name = "ManufactWorkhour",columnDefinition = "Float COMMENT '加工工序实际生产工时'")
    private Float manufactWorkhour ;

    @Column(name = "ManufactStartDate",columnDefinition = "datetime COMMENT '工序实际开始时间' ")
    private Date manufactStartDate;

    @Column(name = "ManufactEndDate",columnDefinition = "datetime COMMENT '工序实际完成时间' ")
    private Date manufactEndDate;
}
